//
//  YJYPhotoCell.h
//  BannerViewDemo
//
//  Created by BaizYi on 2018/11/1.
//  Copyright © 2018 BaizYi. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YJYBrowserScrollView.h"

typedef void(^PhotoCellBlock)(UIImageView *view);

@protocol YJYPhotoCellDelegate <NSObject>

-(void)imageViewClick:(NSInteger)cellIndex;

@end

@interface YJYPhotoCell : UICollectionViewCell

@property(strong,nonatomic) UIImage  *image;
@property(copy,nonatomic) PhotoCellBlock block;
@property(strong,nonatomic) YJYBrowserScrollView  *browserImageScrollView;
@property(weak, nonatomic) id<YJYPhotoCellDelegate>delegate;
@property(assign,nonatomic) NSInteger cellIndex;


@end
